public class test1 {
    public static void main(String[] args) throws InterruptedException {
        System.out.println("13673435520".replaceAll("(\\d{3})\\d{5}(\\d{3})", "$1*****$2"));
    }
}
